package com.example.iorder.restaurant;

import com.example.domain.MenuItem;
import com.example.iorder.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class MenuItemDetails extends Activity {
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
	
		setContentView(R.layout.restaurant_menu_card_details);
		Bundle extraInfo = getIntent().getExtras();
		Object extraInfoObject = extraInfo.getSerializable("selectedItem");
		MenuItem itemToShow = (MenuItem) extraInfoObject;
		if (itemToShow != null){
			
			TextView t = (TextView) findViewById(R.id.itemTitle);
			t.setText(itemToShow.getTitle());
			TextView t2 = (TextView) findViewById(R.id.descreption);
			t2.setText(itemToShow.getDescription());
			
		}
		
		
	}
	
	

}
